home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
C64
/
A-Monthly Disks
/
(c)aav.d64
/
the flat cube
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2007-02-04
|
7KB
|
194 lines
1 PRINT" ";
2 PRINT" ** THE FL";
3 PRINT"AT CUBE BY BILL HUGHES '8";
4 PRINT"7 ** ";
5 PRINT" ";
6 PRINT" TOP FACE ";
7 PRINT" [154][176][192]";
8 PRINT"[192][192][192][192][174] ";
9 PRINT"PRESS TO TURN[194][144] [146] [146] [154][146][194] PRE";
10 PRINT"SS SHIFT KEY CLOCKWIS";
11 PRINT"E [194] [194] FIRST TO ROTA";
12 PRINT"TE [194][144] [146] [146] [154][146][194]";
13 PRINT" ANTICLOCKWISE ";
14 PRINT" [194] [194] ";
15 PRINT" [194][144] ";
16 PRINT"[146] [146] [154][146][194] ";
17 PRINT" [176]`````{`````{`````";
18 PRINT"[178]`````[174] b [146] ";
19 PRINT" [146] [154][146][194][154] [146] [146] [154][146][194] [146] [146] [154][146][194] [146] [146] [154][146][194] ";
20 PRINT" [194] [194] [194]";
21 PRINT" [194] [194] LEFT";
22 PRINT" [194] [146] [146] [154][146][194][154] [146] [146] [154][146][194] [146] [146] [154][146][194] [146] [146][160]";
23 PRINT" [154][146][194][160][160]BACK FACE [194] [194] ";
24 PRINT" [194] [194][160][160][160][160][160][194][160] FACE ";
25 PRINT" [194] [146] [146] [154][146][194][154] [146] [146] [154][146][194] [146] [146] ";
26 PRINT"[154][146][194] [146] [146] [154][146][194] [173][192][192]";
27 PRINT"```{`````{`````[177]`````[189] ";
28 PRINT" L=LEFT [194][156] [146] [146] [154][146][194]";
29 PRINT"RIGHT B=BA";
30 PRINT"SE [194] [194]FACE ";
31 PRINT" T=TOP [194][156] ";
32 PRINT"[146] [146] [154][146][194] ";
33 PRINT" F=FRONT [194] [194] S=";
34 PRINT"SOLVE BY C64 O=BACK ";
35 PRINT" [194][156] [146] [146] [154][146][194] ";
36 PRINT" R=RIGHT [173][192][192][192][192][192][189]";
37 PRINT" ";
38 PRINT" BOTTOM FACE ";
39 PRINT" ";
100 V=55510
102 NM=V:NN=V+2:NO=V+4:NT=V+80:NP=V+84: NS=V+160:NR=V+162:NQ=V+164
105 NA=V+234:NB=V+236:NC=V+238:ND=V+240:NE=V+242:NF=V+244:NG=V+246:NH=V+248
110 NI=V+250:NJ=V+252:NK=V+254:NL=V+256
115 OO=V+314:OP=V+318:OQ=V+320:ZZ=V+324:OS=V+326:OT=V+330:OU=V+332:OV=V+336
120 NU=V+394:NV=V+396:NW=V+398:NX=V+400:NY=V+402:NZ=V+404:OA=V+406:OB=V+408
125 OC=V+410:OD=V+412:OE=V+414:QQ=V+416
130 OG=V+480:OH=V+482:OI=V+484:YY=V+560:OJ=V+564:OM=V+640:OL=V+642:OK=V+644
140 G$=""
150 GETA$:IFA$=""THEN GOTO150
180 IFA$="T"THEN GOSUB14800:GOSUB2800
185 IFA$="B"THEN GOSUB14800:GOSUB3800
186 IFA$="F"THEN GOSUB14800:GOSUB4800
187 IFA$="R"THEN GOSUB14800:GOSUB5800
188 IFA$="L"THEN GOSUB14800:GOSUB6800
189 IFA$="O"THEN GOSUB14800:GOSUB7800
190 IFA$="[212]"THEN GOSUB14800:GOSUB8800
200 IFA$="[194]"THEN GOSUB14800:GOSUB9800
210 IFA$="[198]"THEN GOSUB14800:GOSUB10800
220 IFA$="[210]"THEN GOSUB14800:GOSUB11800
230 IFA$="[204]"THEN GOSUB14800:GOSUB12800
240 IFA$="[207]"THEN GOSUB14800:GOSUB13800
250 IFA$="S"GOTO14840
900 GOTO150
2800 AU=PEEK(NM):AV=PEEK(NN):AW=PEEK(NO):BB=PEEK(NT):AX=PEEK(NP):BA=PEEK(NS)
2850 AZ=PEEK(NR):AY=PEEK(NQ)
2900 AI=PEEK(NA):AJ=PEEK(NB):AK=PEEK(NC):AL=PEEK(ND):AM=PEEK(NE):AN=PEEK(NF)
2950 AO=PEEK(NG):AP=PEEK(NH):AQ=PEEK(NI):AR=PEEK(NJ):AS=PEEK(NK):AT=PEEK(NL)
3000 POKENA,AL:POKENB,AM:POKENC,AN:
3050 POKEND,AO:POKENE,AP:POKENF,AQ:POKENG,AR:POKENH,AS:POKENI,AT
3100 POKENJ,AI:POKENK,AJ:POKENL,AK
3150 POKENM,BA:POKENN,BB:POKENO,AU:POKENP,AV:POKENQ,AW:POKENR,AX:POKENS,AY
3200 POKENT,AZ
3500 RETURN
3800 BC=PEEK(NU):BD=PEEK(NV):BE=PEEK(NW):BF=PEEK(NX):BG=PEEK(NY):BH=PEEK(NZ)
3850 BI=PEEK(OA):BJ=PEEK(OB):BK=PEEK(OC):BL=PEEK(OD):BM=PEEK(OE):BN=PEEK(QQ)
3900 BO=PEEK(OG):BP=PEEK(OH):BQ=PEEK(OI)
3950 BV=PEEK(YY):BR=PEEK(OJ):BU=PEEK(OM):BT=PEEK(OL):BS=PEEK(OK)
4000 POKEOG,BU:POKEOH,BV:POKEOI,BO:POKEOJ,BP:POKEOK,BQ:POKEOL,BR:POKEOM,BS
4050 POKEYY,BT
4100 POKENU,BL:POKENV,BM:POKENW,BN:POKENX,BC:POKENY,BD:POKENZ,BE:POKEOA,BF
4150 POKEOB,BG:POKEOC,BH:POKEOD,BI:POKEOE,BJ:POKEQQ,BK
4500 RETURN
4800 BA=PEEK(NS):AZ=PEEK(NR):AY=PEEK(NQ):AO=PEEK(NG):CA=PEEK(OS):BI=PEEK(OA)
4850 BQ=PEEK(OI):BP=PEEK(OH):BO=PEEK(OG):BE=PEEK(NW):BX=PEEK(OP):AK=PEEK(NC)
4900 AL=PEEK(ND):AM=PEEK(NE):AN=PEEK(NF)
4950 BZ=PEEK(ZZ):BH=PEEK(NZ):BG=PEEK(NY):BF=PEEK(NX):BY=PEEK(OQ)
5000 POKEND,BF:POKENE,BY:POKENF,AL:POKEZZ,AM:POKENZ,AN:POKENY,BZ:POKENX,BH
5050 POKEOQ,BG
5100 POKENS,BE:POKENR,BX:POKENQ,AK:POKENG,BA:POKEOS,AZ:POKEOA,AY:POKEOI,AO
5150 POKEOH,CA:POKEOG,BI:POKENW,BQ:POKEOP,BP:POKENC,BO
5500 RETURN
5800 AO=PEEK(NG):AP=PEEK(NH):AQ=PEEK(NI):CB=PEEK(OT):BK=PEEK(OC):BJ=PEEK(OB)
5850 BI=PEEK(OA):CA=PEEK(OS):BS=PEEK(OK):BR=PEEK(OJ):BQ=PEEK(OI):BH=PEEK(NZ)
5900 BZ=PEEK(ZZ):AN=PEEK(NF):AY=PEEK(NQ)
5950 AX=PEEK(NP):AW=PEEK(NO):AR=PEEK(NJ):CC=PEEK(OU):BL=PEEK(OD)
6000 POKENG,BI:POKENH,CA:POKENI,AO:POKEOT,AP:POKEOC,AQ:POKEOB,CB:POKEOA,BK
6050 POKEOS,BJ
6100 POKENF,BQ:POKENQ,BH:POKENP,BZ:POKENO,AN:POKENJ,AY:POKEOU,AX:POKEOD,AW
6150 POKEOK,AR:POKEOJ,CC:POKEOI,BL:POKENZ,BS:POKEZZ,BR
6500 RETURN
6800 AI=PEEK(NA):AJ=PEEK(NB):AK=PEEK(NC):BX=PEEK(OP):BE=PEEK(NW):BD=PEEK(NV)
6850 BC=PEEK(NU):BW=PEEK(OO):AU=PEEK(NM):BB=PEEK(NT):BA=PEEK(NS):AL=PEEK(ND)
6900 BY=PEEK(OQ):BF=PEEK(NX):BO=PEEK(OG)
6950 BV=PEEK(YY):BU=PEEK(OM):AT=PEEK(NL):CD=PEEK(OV):BN=PEEK(QQ)
7000 POKENA,BC:POKENB,BW:POKENC,AI:POKEOP,AJ:POKENW,AK:POKENV,BX:POKENU,BE
7050 POKEOO,BD
7100 POKEND,AU:POKEOQ,BB:POKENX,BA:POKEOG,AL:POKEYY,BY:POKEOM,BF:POKENL,BU
7150 POKEOV,BV:POKEQQ,BO:POKENM,BN:POKENT,CD:POKENS,AT
7500 RETURN
7800 AR=PEEK(NJ):AS=PEEK(NK):AT=PEEK(NL):CD=PEEK(OV):BN=PEEK(QQ):BM=PEEK(OE)
7850 BL=PEEK(OD):CC=PEEK(OU):AI=PEEK(NA):BW=PEEK(OO):BC=PEEK(NU):AU=PEEK(NM)
7900 AV=PEEK(NN):AW=PEEK(NO):AQ=PEEK(NI)
7950 CB=PEEK(OT):BK=PEEK(OC):BU=PEEK(OM):BT=PEEK(OL):BS=PEEK(OK)
8000 POKENJ,BL:POKENK,CC:POKENL,AR:POKEOV,AS:POKEQQ,AT:POKEOE,CD:POKEOD,BN
8050 POKEOU,BM
8100 POKEOC,BU:POKEOT,BT:POKENI,BS:POKENO,BK:POKENN,CB:POKENM,AQ:POKENA,AW
8150 POKEOO,AV:POKENU,AU:POKEOM,AI:POKEOL,BW:POKEOK,BC
8500 RETURN
8800 AU=PEEK(NM):AV=PEEK(NN):AW=PEEK(NO):BB=PEEK(NT):AX=PEEK(NP):BA=PEEK(NS)
8850 AZ=PEEK(NR):AY=PEEK(NQ)
8900 AI=PEEK(NA):AJ=PEEK(NB):AK=PEEK(NC):AL=PEEK(ND):AM=PEEK(NE):AN=PEEK(NF)
8950 AO=PEEK(NG):AP=PEEK(NH):AQ=PEEK(NI):AR=PEEK(NJ):AS=PEEK(NK):AT=PEEK(NL)
9000 POKENA,AR:POKENB,AS:POKENC,AT
9050 POKEND,AI:POKENE,AJ:POKENF,AK:POKENG,AL:POKENH,AM:POKENI,AN
9100 POKENJ,AO:POKENK,AP:POKENL,AQ
9150 POKENM,AW:POKENN,AX:POKENO,AY:POKENP,AZ:POKENQ,BA:POKENR,BB:POKENS,AU
9200 POKENT,AV
9500 RETURN
9800 BC=PEEK(NU):BD=PEEK(NV):BE=PEEK(NW):BF=PEEK(NX):BG=PEEK(NY):BH=PEEK(NZ)
9850 BI=PEEK(OA):BJ=PEEK(OB):BK=PEEK(OC):BL=PEEK(OD):BM=PEEK(OE):BN=PEEK(QQ)
9900 BO=PEEK(OG):BP=PEEK(OH):BQ=PEEK(OI)
9950 BR=PEEK(OJ):BS=PEEK(OK):BT=PEEK(OL)
9980 BU=PEEK(OM):BV=PEEK(YY)
10000 POKEOG,BQ:POKEOH,BR:POKEOI,BS:POKEOJ,BT:POKEOK,BU:POKEOL,BV:POKEOM,BO
10050 POKEYY,BP
10100 POKENU,BF:POKENV,BG:POKENW,BH:POKENX,BI:POKENY,BJ:POKENZ,BK:POKEOA,BL
10150 POKEOB,BM:POKEOC,BN:POKEOD,BC:POKEOE,BD:POKEQQ,BE
10500 RETURN
10800 BA=PEEK(NS):AZ=PEEK(NR):AY=PEEK(NQ):AO=PEEK(NG):CA=PEEK(OS):BI=PEEK(OA)
10850 BQ=PEEK(OI):BP=PEEK(OH):BO=PEEK(OG):BE=PEEK(NW):BX=PEEK(OP):AK=PEEK(NC)
10900 AL=PEEK(ND):AM=PEEK(NE):AN=PEEK(NF)
10950 BZ=PEEK(ZZ):BH=PEEK(NZ):BG=PEEK(NY):BF=PEEK(NX):BY=PEEK(OQ)
11000 POKEND,AN:POKENE,BZ:POKENF,BH:POKEZZ,BG:POKENZ,BF:POKENY,BY:POKENX,AL
11050 POKEOQ,AM:POKENR,CA:POKENQ,BI:POKENG,BQ:POKEOS,BP:POKEOA,BO:POKEOI,BE
11100 POKEOH,BX:POKEOG,AK:POKENW,BA:POKEOP,AZ:POKENC,AY:POKENS,AO:POKENR,CA
11500 RETURN
11800 AO=PEEK(NG):AP=PEEK(NH):AQ=PEEK(NI):CB=PEEK(OT):BK=PEEK(OC):BJ=PEEK(OB)
11850 BI=PEEK(OA):CA=PEEK(OS):BS=PEEK(OK):BR=PEEK(OJ):BQ=PEEK(OI):BH=PEEK(NZ)
11900 BZ=PEEK(ZZ):AN=PEEK(NF):AY=PEEK(NQ)
11950 AX=PEEK(NP):AW=PEEK(NO):AR=PEEK(NJ):CC=PEEK(OU):BL=PEEK(OD)
12000 POKENG,AQ:POKENH,CB:POKENI,BK:POKEOT,BJ:POKEOC,BI:POKEOB,CA:POKEOA,AO
12050 POKEOS,AP
12100 POKENF,AW:POKENQ,AR:POKENP,CC:POKENO,BL:POKENJ,BS:POKEOU,BR:POKEOD,BQ
12150 POKEOK,BH:POKEOJ,BZ:POKEOI,AN:POKENZ,AY:POKEZZ,AX
12500 RETURN
12800 AI=PEEK(NA):AJ=PEEK(NB):AK=PEEK(NC):BX=PEEK(OP):BE=PEEK(NW):BD=PEEK(NV)
12850 BC=PEEK(NU):BW=PEEK(OO):AU=PEEK(NM):BB=PEEK(NT):BA=PEEK(NS):AL=PEEK(ND)
12900 BY=PEEK(OQ):BF=PEEK(NX):BO=PEEK(OG)
12950 BV=PEEK(YY):BU=PEEK(OM):AT=PEEK(NL):CD=PEEK(OV):BN=PEEK(QQ)
13000 POKENA,AK:POKENB,BX:POKENC,BE:POKEOP,BD:POKENW,BC:POKENV,BW:POKENU,AI
13050 POKEOO,AJ
13100 POKEND,BO:POKEOQ,BV:POKENX,BU:POKEOG,BN:POKEYY,CD:POKEOM,AT:POKEQQ,AU
13150 POKEOV,BB:POKENL,BA:POKENM,AL:POKENT,BY:POKENS,BF
13500 RETURN
13800 AR=PEEK(NJ):AS=PEEK(NK):AT=PEEK(NL):CD=PEEK(OV):BN=PEEK(QQ):BM=PEEK(OE)
13850 BL=PEEK(OD):CC=PEEK(OU):AI=PEEK(NA):BW=PEEK(OO):BC=PEEK(NU):AU=PEEK(NM)
13900 AV=PEEK(NN):AW=PEEK(NO):AQ=PEEK(NI)
13950 CB=PEEK(OT):BK=PEEK(OC):BU=PEEK(OM):BT=PEEK(OL):BS=PEEK(OK)
14000 POKENJ,AT:POKENK,CD:POKENL,BN:POKEOV,BM:POKEQQ,BL:POKEOE,CC:POKEOD,AR
14050 POKEOU,AS
14100 POKEOC,AW:POKEOT,AV:POKENI,AU:POKENO,AI:POKENN,BW:POKENM,BC:POKENA,BU
14150 POKEOO,BT:POKENU,BS:POKEOM,BK:POKEOL,CB:POKEOK,AQ
14500 RETURN
14800 G$=A$+G$
14820 RETURN
14840 C=LEN(G$)
14850 FORI=1TOC
14860 D$=MID$(G$,I,1)
14870 IFD$="T"THENGOSUB8800
14880 IFD$="B"THENGOSUB9800
14900 IFD$="F"THENGOSUB10800
14920 IFD$="R"THENGOSUB11800
14940 IFD$="L"THENGOSUB12800
14960 IFD$="O"THENGOSUB13800
14980 IFD$="[212]"THENGOSUB2800
15000 IFD$="[194]"THENGOSUB3800
15020 IFD$="[198]"THENGOSUB4800
15040 IFD$="[210]"THENGOSUB5800
15060 IFD$="[204]"THENGOSUB6800
15080 IFD$="[207]"THENGOSUB7800
15120 FORZ=1TO200:NEXTZ:NEXTI:G$=""
15130 PRINT"[144]SOLVED[154]"
15140 FORK=1TO500:NEXTK:GOTO1